home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / devices / prtbase.inc < prev    next >
Text File  |  1998-06-24  |  2KB  |  116 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/nodes.inc";
  3. include "inc/exec/lists.inc";
  4. include "inc/exec/ports.inc";
  5. include "inc/exec/libraries.inc";
  6. include "inc/exec/tasks.inc";
  7. include "inc/devices/parallel.inc";
  8. include "inc/devices/serial.inc";
  9. include "inc/devices/timer.inc";
  10. include "inc/dos/dosextens.inc";
  11. include "inc/intuition/intuition.inc";
  12.  
  13. struct DeviceData is
  14.   dd_Device:Library;
  15.   dd_Segment:ulong;
  16.   dd_ExecBase:ulong;
  17.   dd_CmdVectors:ulong;
  18.   dd_CmdBytes:ulong;
  19.   dd_NumCommands:uword;
  20. ;
  21.  
  22. def P_OLDSTKSIZE = $0800;
  23. def P_STKSIZE = $1000;
  24. def P_BUFSIZE = 256;
  25. def P_SAFESIZE = 128;
  26.  
  27. struct PrinterData is
  28.   pd_Device:DeviceData;
  29.   pd_Unit:MsgPort;
  30.   pd_PrinterSegment:long;
  31.   pd_PrinterType:uword;
  32.   pd_SegmentData:ulong;
  33.   pd_PrintBuf:ulong;
  34.   pd_PWrite:ulong;
  35.   pd_PBothReady:ulong;
  36.   pd_ior0:union is
  37.     pd_p0:IOExtPar;
  38.     pd_s0:IOExtSer;
  39.   ;
  40.   pd_ior1:union is
  41.     pd_p1:IOExtPar;
  42.     pd_s1:IOExtSer;
  43.   ;
  44.   pd_TIOR:timerequest;
  45.   pd_IORPort:MsgPort;
  46.   pd_TC:Task;
  47.   pd_OldStk[$0800]:ubyte;
  48.   pd_Flags:ubyte;
  49.   pd_pad:ubyte;
  50.   pd_Preferences:Preferences;
  51.   pd_PWaitEnabled:ubyte;
  52.   pd_Flags1:ubyte;
  53.   pd_Stk[$1000]:ubyte;
  54. ;
  55.  
  56. def pd_PIOR0 = pd_ior0.pd_p0;
  57. def pd_SIOR0 = pd_ior0.pd_s0;
  58. def pd_PIOR1 = pd_ior1.pd_p1;
  59. def pd_SIOR1 = pd_ior1.pd_s1;
  60.  
  61. def PPCB_GFX = 0;
  62. def PPCF_GFX = $1;
  63. def PPCB_COLOR = 1;
  64. def PPCF_COLOR = $2;
  65.  
  66. def PPC_BWALPHA = $00;
  67. def PPC_BWGFX = $01;
  68. def PPC_COLORALPHA = $02;
  69. def PPC_COLORGFX = $03;
  70.  
  71. def PCC_BW = $01;
  72. def PCC_YMC = $02;
  73. def PCC_YMC_BW = $03;
  74. def PCC_YMCB = $04;
  75. def PCC_4COLOR = $04;
  76. def PCC_ADDITIVE = $08;
  77. def PCC_WB = $09;
  78. def PCC_BGR = $0a;
  79. def PCC_BGR_WB = $0b;
  80. def PCC_BGRW = $0c;
  81.  
  82. def PCC_MULTI_PASS = $10;
  83.  
  84. struct PrinterExtendedData is
  85.   ped_PrinterName:ulong;
  86.   ped_Init:ulong;
  87.   ped_Expunge:ulong;
  88.   ped_Open:ulong;
  89.   ped_Close:ulong;
  90.   ped_PrinterClass:ubyte;
  91.   ped_ColorClass:ubyte;
  92.   ped_MaxColumns:ubyte;
  93.   ped_NumCharSets:ubyte;
  94.   ped_NumRows:uword;
  95.   ped_MaxXDots:ulong;
  96.   ped_MaxYDots:ulong;
  97.   ped_XDotsInch:uword;
  98.   ped_YDotsInch:uword;
  99.   ped_Commands:ulong;
  100.   ped_DoSpecial:ulong;
  101.   ped_Render:ulong;
  102.   ped_TimeoutSecs:long;
  103.   ped_8BitChars:ulong;
  104.   ped_PrintMode:long;
  105.   ped_ConvFunc:ulong;
  106. ;
  107.  
  108. struct PrinterSegment is
  109.   ps_NextSegment:ulong;
  110.   ps_runAlert:ulong;
  111.   ps_Version:uword;
  112.   ps_Revision:uword;
  113.   ps_PED:PrinterExtendedData;
  114. ;
  115.  
  116.